package com.itheima.mapper;

import com.itheima.pojo.Shopping;
import com.itheima.pojo.ShoppingDTO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Mapper
public interface ShoppingMapper {

    void save(Shopping shopping);

    Shopping getById(Long skuId);

    List<Shopping> list(@RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize,@RequestParam("shoppingDTO") ShoppingDTO shoppingDTO);

    void delect(Long skuId);

    void update(Shopping shopping);
}
